﻿using System;

namespace DuinoWebserver
{
    public class Program
    {
        private static Application application;

        public static void Main()
        {
            application = new Application();
            try
            {
                application.Init();
            }
            catch (Exception e)
            {
                Application.DebugPrint(e.Message);
            }

            while (true)
            {
                try
                {
                    application.Loop();

                }
                catch (Exception e)
                {
                    Application.DebugPrint(e.Message);
                }
            }
        }
    }
}
